const localCache = {
  set (key, value,expires) {
    if (key != null && value != null) {
      uni.setStorageSync(key,value,expires)
    }
  },
  get (key) {
    if (key == null) {
      return null
    }
    return uni.getStorageSync(key)
  },
  remove (key) {
    uni.removeStorageSync(key);
  }
}

export default {
  /**
   * 本地缓存
   */
  local: localCache
}
